﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ComeSeeThis_MVC2.Models.aspnet_Operation>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit Operation
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit Operation</h2>
    <% Html.RenderPartial("SubMenu"); %>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <%: Html.HiddenFor(model=>model.OperationId) %>
    <fieldset>
        <table>
            <tr>
                <th>
                    <%: Html.LabelFor(model => model.Code) %>
                </th>
                <td>
                    <%: Html.TextBoxFor(model => model.Code, new { maxlength="10"}) %>
                    <%: Html.ValidationMessageFor(model => model.Code) %>
                </td>
            </tr>
            <tr>
                <th>
                    <%: Html.LabelFor(model => model.Name) %>
                </th>
                <td>
                    <%: Html.TextBoxFor(model => model.Name) %>
                    <%: Html.ValidationMessageFor(model => model.Name) %>
                </td>
            </tr>
            <tr>
                <th>
                    <%: Html.LabelFor(model => model.Description) %>
                </th>
                <td>
                    <%: Html.TextBoxFor(model => model.Description) %>
                    <%: Html.ValidationMessageFor(model => model.Description) %>
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="BodyTagContent" runat="server">
</asp:Content>
